import redis

REDIS_HOST = 'localhost'
REDIS_PORT = 6379
client = redis.Redis(REDIS_HOST, REDIS_PORT)

print(client.exists('review:items'))

SETTINGS_KEY = 'papa:project:settings'
if not client.exists(SETTINGS_KEY):
    client.hmset(SETTINGS_KEY, {'proxies': '[]'})

proxies = client.hget(SETTINGS_KEY, 'proxies')
print(proxies)
